<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/css/default.css" />  
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.4.2.min.js"></script> 

<title>添加图片</title>
</head>

<body bgcolor="#ffffff" onload="init()" leftmargin="0" topmargin="0">
  
    <s:form name="savePicture" action="savePicture" method="POST" theme="simple" id="frmDemo"  enctype="multipart/form-data">
	   <s:hidden name="picture.ownerId" value="%{productId}"/>
  		<table height="100%" width="100%" cellspacing="1" cellpadding="2" border="0" bgcolor="#336600">
    		<tbody>
    			<tr> 
      				<td height="26" bgcolor="#669900" colspan="2">
      					<font color="#ffffff">::添加图片</font>
      				</td>
    			</tr>
    			
    			
    			<tr bgcolor="#eeeeee">     		
      				<td height="26" width="19%" align="right">图片：</td>
      				
        			 <td height="26" width="81%">
        		      
        			  <s:file name="image"></s:file>
        			 </td>         		
    			</tr>
    			<tr bgcolor="#eeeeee">     		
      				<td height="26" width="19%" align="right">图片描述：</td>
      				
        			 <td height="26" width="81%">        		      
        			  <s:textarea name="picture.description" rows="15" cols="40" ></s:textarea>
        			 </td>         		
    			</tr>
    	   		<tr bgcolor="#eeeeee" align="left"> 
	    			<td height="26" width="10%" align="right"></td>
 					<td height="30" width="90%"> 
 					   <s:submit class="button" name="submit" value=" 保 存 "></s:submit>
   					</td>
	    		</tr>
  		</tbody>
  	</table>
</s:form>
</body>
</html>